@extends('layouts.default')
@section('content') 
<div class="box">
    <header>
        <div class="icons">
            <i class="fa fa-table"></i>
        </div>
        <h5>{{ Lang::get('rentals.all_reservations') }}</h5>
    </header>
    <div id="collapse4" class="body">
        <table id="dataTable" class="table table-bordered table-condensed table-hover table-striped">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>{{ Lang::get('messages.vehicle') }}</th>
                    <th>{{ Lang::get('rentals.drfirstname') }}</th>
                    <th>{{ Lang::get('rentals.drlastname') }}</th>
                    <th>{{ Lang::get('reservation.startdate') }}</th>
                    <th>{{ Lang::get('reservation.enddate') }}</th>
                  
                </tr>
            </thead>
            <tbody>
                @foreach($results as $r )
                <tr>
                    <td>{{ $r->id }}</td>
                    <td>{{ $r->Make.' '.$r->Model }}</td>     
                    <td>{{ $r->drfirstname}}</td>
                    <td>{{ $r->drlastname }}</td>
                    <td>{{ $r->STARTTIME}}</td> 
                    <td>{{ $r->ENDTIME}}</td>
                </tr>
                @endforeach
               
            </tbody>
        </table>
    </div>
</div>
@stop

